<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
</body>
</html>
<script>
    var gj = 5;
    var mj = 3;
    var xj = 1 / 3;
    var money = 100;
    // function method(r1, r2, r3) {
        for (var r1 = 1; r1 < 20; r1++) {
            for (var r2 = 1; r2 < 34; r2++){
                for (var r3 = 1; r3 < 292; r3++){
                    if (money == gj * r1 + mj * r2 + xj * r3&& r1 + r2 + r3 ==100&&r3%3==0) {
                        document.write("公鸡"+r1,"母鸡"+r2,"小鸡"+r3);
                    }
                }

            }
        }
    // }
    // method();

</script>